<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.eagle.utils.DateUtil"%>
<%@page import="java.util.Date"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@page import="com.eagle.utils.StrUtil"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>操作日志查询</title>
  <link href="<%=request.getContextPath()%>/css/base.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%=request.getContextPath()%>/js/select2css.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery-1.7.1.js"></script>
    <script type="text/javascript" src="<%=request.getContextPath()%>/js/common.js"></script>
    <script type="text/javascript" src="<%=request.getContextPath()%>/dateCommon/WdatePicker.js"></script>
     <script language="JavaScript"> 
    //禁止刷新，回退 
    function onKeyDown() 
	 { 
		if ( (event.altKey) || ((event.keyCode == 8) && 
			(event.srcElement.type != "text" && 
			event.srcElement.type != "textarea" && 
			event.srcElement.type != "password")) || 
		   	((event.ctrlKey) && ((event.keyCode == 78) || (event.keyCode == 82)) ) || 
			(event.keyCode == 116) ) { 
 					event.keyCode = 0; 
 					event.returnValue = false; 
 			} 
 	 } 
      document.onkeydown = onKeyDown; 
     function stop(){ //这个是禁用鼠标右键 
		return false; 
	 } 
	 document.oncontextmenu=stop; 
 </script> 
    <script type="text/javascript">
    //javascript:window.history.forward(1); //禁止回退
    function serachQuery(num) {
		var startTimeflag = (checkCE(Trim(document.getElementById('start').value)) <= 0);
		var endTimeflag = (checkCE(Trim(document.getElementById('end').value)) <= 0);
		//提醒输入开始日期和结束日期
    
		if(startTimeflag == true){
			alert('时间范围开始日期不能为空');
			return false;
		}
		if(endTimeflag == true){
			alert('时间范围结束日期不能为空');
			return false;
		}	
		document.myform.action = "opLogAction!getPosOpWasteList.action?pageNum="+num;
		document.myform.submit();
	}
	function goDetail(wasteSN){
	document.myform.action = "opLogAction!getDetail.action?wasteSN=" + wasteSN;
	document.myform.submit();
	}
    </script>
    </head>
   <body class="b2">
   <form id="myform" name="myform" method="post" action="">
		 <div class="area2 wrap2"  >
	 <h2><span><a href="javascript:void(0)" class="abbtn" onclick="serachQuery(1)">查询</a>
	 </span>查询条件</h2>
	 <div class="inner_b">
	  <table width="100%" border="0" cellspacing="0" cellpadding="0">
  					 <tr>
  					    <td class="td_label" width="8%">操作员</td>
  						<td colspan="2">
  								<s:set name="selectOper" value="operatorID"/>
  								<div id="data_youn_6" class="select_style_1 ml" >
  								<select name="operatorID">
  								<option value="-1" >请选择操作员</option>
  									<s:if test="operList!=null && operList.size()>0">
  										<s:iterator value="operList" id="oper">
  											<option value="<s:property value="#oper.OperatorID"/>" <s:if test="#selectOper.equals(operatorID)">selected="selected"</s:if>>
  												<s:property value="#oper.OperatorName"/>
  											</option>
  										</s:iterator>
  									</s:if>
  								</select>
  								</div>
  						</td>
					    <td class="td_label" width="8%">操作类型</td>
					    <td>
					    <div id="data_youn_6" class="select_style_1 ml" >
					    <select name="operType">
					    <option value="-1">请选择操作类型</option>
					    <option value="2"
  								<s:if test="operType == 2 ">selected</s:if>
  						>卡申请</option>
  						<option value="4"
  								<s:if test="operType == 4">selected</s:if>
  						>现金充值</option>
  						<option value="5"
  						        <s:if test="operType == 5">selected</s:if>
  						>登陆</option>
  						<option value="6"
  						        <s:if test="operType == 6">selected</s:if>
  						>操作员增加</option>
  						<option value="7"
  						        <s:if test="operType == 7">selected</s:if>
  						>操作员信息修改</option>
  						<option value="8"
  						        <s:if test="operType == 8">selected</s:if>
  						>操作员密码修改</option>
  						<option value="9"
  						        <s:if test="operType == 9">selected</s:if>
  						>报表打印</option>
  						<option value="10"
  								<s:if test="operType == 10">selected</s:if>
  						>用户信息变更</option>
  						<option value="11"
  								<s:if test="operType == 11">selected</s:if>
  						>卡信息变更</option>
  						<option value="13"
  								<s:if test="operType == 13">selected</s:if>
  						>OBU申请</option>
  						<option value="14"
  								<s:if test="operType == 14">selected</s:if>
  						>OBU安装</option>
  						<option value="15"
  								<s:if test="operType == 15">selected</s:if>
  						>OBU挂失</option>
  						<option value="16"
  								<s:if test="operType == 16">selected</s:if>
  						>OBU解挂</option>
  						<option value="17"
  								<s:if test="operType == 17">selected</s:if>
  						>OBU更换</option>
  						<option value="18"
  								<s:if test="operType == 18">selected</s:if>
  						>OBU迁移</option>
  						<option value="19"
  								<s:if test="operType == 19">selected</s:if>
  						>OBU过户</option>
  						<option value="20"
  								<s:if test="operType == 20">selected</s:if>
  						>OBU注销</option>
  						<option value="21"
  								<s:if test="operType == 21">selected</s:if>
  						>卡注销</option>
  						<option value="22"
  								<s:if test="operType == 22">selected</s:if>
  						>卡解挂</option>
  						<option value="23"
  								<s:if test="operType == 23">selected</s:if>
  						>卡挂失</option>
  						<option value="24"
  								<s:if test="operType == 24">selected</s:if>
  						>卡补发</option>
  						<option value="25"
  								<s:if test="operType == 25">selected</s:if>
  						>OBU安装确认</option>
  						<option value="26"
  								<s:if test="operType == 26">selected</s:if>
  						>退出系统</option>
  						<option value="27"
  								<s:if test="operType == 27">selected</s:if>
  						>稽核消费流水</option>
  						<option value="28"
  								<s:if test="operType == 28">selected</s:if>
  						>预充值争议数据处理</option>
  						<option value="29"
  								<s:if test="operType == 29">selected</s:if>
  						>充值争议数据处理</option>
  						<option value="30"
  								<s:if test="operType == 30">selected</s:if>
  						>扣款争议数据处理</option>
  						<option value="31"
  								<s:if test="operType == 31">selected</s:if>
  						>回退金额录入</option>
  						<option value="32"
  								<s:if test="operType == 32">selected</s:if>
  						>手动录入黑名单</option>
  						</select>
  						</div>
  						</td>
  							 <td class="td_label" width="8%">时间范围</td>
  						<td > 
  			 <%
   			 	Date start = (Date) request.getAttribute("beginTime");
   			 	String tempstart = "";
   			 	String tempend = "";
                //String s=DateUtil.getAddDays(DateUtil.getNowDate(),-31);
                String s=DateUtil.getAddMonths(DateUtil.getNowDate(),-1);
   			 	   	if (start == null) {
   			             		tempstart = s;
   			             	} else {
   			             		tempstart = DateUtil.parseDateToString(start);
   			             	}

   			 	Date end = (Date) request.getAttribute("endTime");
   			 	if (end == null) {
   			 		tempend = DateUtil.getNowDate();
   			 	} else {
   			 		tempend = DateUtil.formatDate(end);
   			 	}
   			 %>
				<input id="start" name="beginTime" class="input_text_1 input_text_1_3" value="<%=tempstart%>" type="text"
					onFocus="WdatePicker({maxDate:'#F{$dp.$D(\'end\')||\'2020-10-01\'}'})"  />
				</td><td>至</td><td>
				<input id="end" name="endTime" class="input_text_1 input_text_1_3" value="<%=tempend%>" type="text"
				onFocus="WdatePicker({minDate:'#F{$dp.$D(\'start\')}'})"  />
            </td>	
           
 			 </tr>
 		 </table>
 		 </div>
 		 </div>
  			<div class="area2 wrap2">
	 	<h2>操作信息</h2>
	 	<div class="inner_b inner_b_2">
	   	<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_style_1  table_style_1_2">
		  			<s:if test="posOpWaste != null">
		  			<tr class="trTitle">
		  				<th class="td_dashed1" width="11%">操作时间</th>
		  				<th class="td_dashed1" width="11%">操作员</th>
		  				<th class="td_dashed1" width="11%">操作类型</th>
		  				<th class="td_dashed1" width="11%">办理网点</th>
		  				<th class="td_dashed1" width="11%">操作结果</th>
		  				<th class="td_dashed1" width="11%">操作</th>
		  			</tr>
		  			
		  			<s:iterator value="posOpWaste" id="posOp">
		  				<tr>
		  					<td class="tc"><s:property value="#posOp.OperTime_str"/></td>
		  					<td class="tc"> <s:if test="operList != null">
		  					  <s:iterator value="operList" id="oper">
		  						<s:if test="#oper.OperatorID == #posOp.OperatorID">
		  							<s:property value="#oper.OperatorName" />
		  						</s:if>
		  					</s:iterator>
		  				    </s:if></td>
		  					<td class="tc"><!--<s:if test="#posOp.OperType==1">写卡</s:if>
		  					--><s:if test="#posOp.OperType==2">卡申请</s:if>
		  					<s:if test="#posOp.OperType==4">现金充值</s:if>
		  					<s:if test="#posOp.OperType==5">登陆</s:if>
		  					<s:if test="#posOp.OperType==6">操作员增加</s:if>
		  					<s:if test="#posOp.OperType==7">操作员信息修改</s:if>
		  					<s:if test="#posOp.OperType==8">操作员密码修改</s:if>
		  					<s:if test="#posOp.OperType==9">报表打印</s:if>
		  					<s:if test="#posOp.OperType==10">用户信息变更</s:if>
		  					<s:if test="#posOp.OperType==11">卡信息变更</s:if>
		  					<s:if test="#posOp.OperType==13">OBU申请</s:if>
		  					<s:if test="#posOp.OperType==14">OBU安装</s:if>
		  					<s:if test="#posOp.OperType==15">OBU挂失</s:if>
		  					<s:if test="#posOp.OperType==16">OBU解挂</s:if>
		  					<s:if test="#posOp.OperType==17">OBU更换</s:if>
		  					<s:if test="#posOp.OperType==18">OBU迁移</s:if>
		  					<s:if test="#posOp.OperType==19">OBU过户</s:if>
		  					<s:if test="#posOp.OperType==20">OBU注销</s:if>
		  					<s:if test="#posOp.OperType==21">卡注销</s:if>
		  					<s:if test="#posOp.OperType==22">卡解挂</s:if>
		  					<s:if test="#posOp.OperType==23">卡挂失</s:if>
		  					<s:if test="#posOp.OperType==24">卡补发</s:if>
		  					<s:if test="#posOp.OperType==25">安装确认</s:if>
		  					<s:if test="#posOp.OperType==26">退出系统</s:if>
		  					<s:if test="#posOp.OperType==27">稽核消费流水</s:if>
		  					<s:if test="#posOp.OperType==28">预充值争议数据处理</s:if>
		  					<s:if test="#posOp.OperType==29">充值争议数据处理</s:if>
		  					<s:if test="#posOp.OperType==30">扣款争议数据处理</s:if>
		  					<s:if test="#posOp.OperType==31">回退金额录入</s:if>
		  					</td>
		  					<td class="tc"><s:property value="#posOp.PosName"/></td>
		  					<td class="tc">
		  					<s:if test="#posOp.Result==0">失败</s:if>
		  					<s:else>成功</s:else>
		  					</td>
		  					<s:if test="#posOp.OperType > 26">
		  					<td class="tc"><s:property value="#posOp.Content"/></td>
		  					</s:if>
		  					<s:else>
		  					<td class="tc">
		  						<a onClick="goDetail('<s:property value="#posOp.WasteSN"/>')" 
          						class="abbtn"  name="add2" 
          						>明细</a>
		  					</td>
		  					</s:else>
		 				</tr>
		  			</s:iterator>
		  		
		  			 <tr>
		  			               <td colspan=6 align="center"><s:property value="str_pageInfor" escape="false"/></td>

					</tr>
		            </s:if>	
		 		</table>
		 		</div>
		 		</div>
	
  	</form>
  </body>
</html>
